package cn.edu.hznu.ocw.actions;

import java.util.Map;

import org.apache.struts2.interceptor.ApplicationAware;
import org.apache.struts2.interceptor.RequestAware;
import org.apache.struts2.interceptor.SessionAware;

import com.opensymphony.xwork2.ActionSupport;

public abstract class OCWAction extends ActionSupport implements RequestAware,
		ApplicationAware, SessionAware {
	private static final long serialVersionUID = 7178458810485350468L;
	protected Map request = null;
	protected Map session = null;
	protected Map application = null;

	@Override
	public void setRequest(Map request) {
		this.request = request;
	}

	@Override
	public void setSession(Map session) {
		this.session = session;
	}

	@Override
	public void setApplication(Map application) {
		this.application = application;
	}

	@Override
	public abstract String execute() throws Exception;

}
